<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>添加奖罚单</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript" src="H-ui.admin/lib/html5shiv.js"></script>
<script type="text/javascript" src="H-ui.admin/lib/respond.min.js"></script>
<link rel="stylesheet" type="text/css"
	href="H-ui.admin/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css"
	href="H-ui.admin/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css"
	href="H-ui.admin/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css"
	href="H-ui.admin/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css"
	href="H-ui.admin/static/h-ui.admin/css/style.css" />
<script type="text/javascript"
	src="H-ui.admin/lib/DD_belatedPNG_0.0.8a-min.js"></script>
<script>
	DD_belatedPNG.fix('*');
</script>
</head>

<body>
	<article class="page-container"> <nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>
	员工管理 <span class="c-gray en">&gt;</span> 添加奖罚单 <a
		class="btn btn-success radius r"
		style="line-height:1.6em;margin-top:3px"
		href="javascript:location.replace(location.href);" title="刷新"><i
		class="Hui-iconfont">&#xe68f;</i> </a></nav>
	<form action="rewardrecordActionaddReward" method="post"
		class="form form-horizontal" id="form-admin-add">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-1"><span
				class="c-red">*</span>奖罚项目：</label>
			<div class="formControls col-xs-8 col-sm-3">
					<span class="select-box" style="width:150px;"><s:action
							name="rewardrecordActionfindRewardprojects" id="po" /> <select
						id="p" class="select" name="sywRewardrecord.sywRewardproject.id"
						size="1">
							<option value="0">请选择</option>
							<s:iterator value="psList" id="p">
								<option value="<s:property value="#p.id" />">
									<s:property value="#p.name" />
								</option>
							</s:iterator>
					</select>
					</span>
				<div class="formControls col-xs-8 col-xs-offset-3"
					style="color: red;" id="potisionmag"></div>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-1"><span
				class="c-red">*</span>被处罚人：</label>
			<div class="formControls col-xs-8 col-sm-3">
				<input type="text" class="input-text" value="" placeholder=""
					id="emp" name="name">
				<div class="formControls col-xs-8 col-xs-offset-3"
					style="color: red;" id="empmag"></div>
			</div>
		</div>

		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-1">
				<input class="btn btn-primary radius" type="submit"
					value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
			</div>
		</div>
	</form>
	</article>
	<!--_footer 作为公共模版分离出去-->
	<script type="text/javascript"
		src="H-ui.admin/lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="H-ui.admin/lib/layer/2.4/layer.js"></script>
	<script type="text/javascript"
		src="H-ui.admin/static/h-ui/js/H-ui.min.js"></script>
	<script type="text/javascript"
		src="H-ui.admin/static/h-ui.admin/js/H-ui.admin.js"></script>
	<!--/_footer 作为公共模版分离出去-->

	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript"
		src="H-ui.admin/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
	<script type="text/javascript"
		src="H-ui.admin/lib/jquery.validation/1.14.0/validate-methods.js"></script>
	<script type="text/javascript"
		src="H-ui.admin/lib/jquery.validation/1.14.0/messages_zh.js"></script>
	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript"
		src="H-ui.admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
	<script type="text/javascript"
		src="H-ui.admin/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
	<script type="text/javascript"
		src="H-ui.admin/lib/laypage/1.2/laypage.js"></script>
	<script type="text/javascript">
			$(function() {
				$('.skin-minimal input').iCheck({
					checkboxClass : 'icheckbox-blue',
					radioClass : 'iradio-blue',
					increaseArea : '20%'
				});
				$("#emp").blur(function() {
					var emp = $("#emp").val();
					if (emp == "") {
						$("#empmag").html("被处罚人不能为空");
					} else {
						$("#empmag").html("");
					}
				});
				$("#p").blur(function() {
					var p = $("#p").val();
					if (p == 0) {
						$("#potisionmag").html("请至少选择一个奖罚项目");
					} else {
						$("#potisionmag").html("");
					}
				});
			});
		</script>
</body>
</html>
